package com.neusoft.dibuy.lib.cl;

public class OutClass {
    static  int  i = 10;
    static class StaticInnerClass{
        public void fun1()
        {
            System.out.println("OutClass.StaticInnerClass.fun1");
        }
    }
    /**
     * 实例成员
     */
    private    class InnerClass{
        public void fun1()
        {
            System.out.println("OutClass.InnerClass.fun1");
        }
    }
    public void aa(){
        InnerClass  ic =new InnerClass();
    }
    public  void p(){
        IPrinter ip = new Printer();
    }
    public  void p2(){
        IPrinter ip = new IPrinter(){
            public void print()
            {
                System.out.println("OutClass.IPrinter.print");
            }
        };
    }



}

interface IPrinter{
    void print();
}
class Printer implements IPrinter{
    public void print()
    {
        System.out.println("Printer.print");
    }
}
